ee749d7e4e60f2a10c7d0600473dd09e9b7ac13f,tests/frontend/org/voltdb/regressionsuites/TestFunctionsForJSON.java,TestFunctionsForJSON,testFIELDFunctionWithDotAndIndexNotation,#,455

Before Change


        result = cr.getResults()[0];
        validateTableOfLongs(result, new long[][]{{1},{2},{3}});

        cr = client.callProcedure("IdFieldProc", "inner.arr[1]", 2);
        assertEquals(ClientResponse.SUCCESS, cr.getStatus());
        result = cr.getResults()[0];
        validateTableOfLongs(result, new long[][]{{2}});

        cr = client.callProcedure("IdFieldProc", "arr3d[2].veggies", "good for you");
        assertEquals(ClientResponse.SUCCESS, cr.getStatus());
        result = cr.getResults()[0];
        validateTableOfLongs(result, new long[][]{{1},{2},{3}});

        cr = client.callProcedure("IdFieldProc", "arr3d[2].dairy", "3");
        assertEquals(ClientResponse.SUCCESS, cr.getStatus());

After Change



    /** Used to test ENG-6620, part 3 (dotted path and array index notation, combined). */
    public void testFIELDFunctionWithDotAndIndexNotation() throws Exception {
        Client client = getClient();
        loadJS1(client);

        testProcWithValidJSON(TABLE_ROWS123, client, "IdFieldProc", "inner.arr[0]", 0);
        testProcWithValidJSON(TABLE_ROW2,    client, "IdFieldProc", "inner.arr[1]", 2);
        testProcWithValidJSON(TABLE_ROWS123, client, "IdFieldProc", "arr3d[2].veggies", "good for you");
        testProcWithValidJSON(TABLE_ROW3,    client, "IdFieldProc", "arr3d[2].dairy", "3");
    }